package com.tiancheng.trade.authserver.service;

import com.tiancheng.trade.authserver.vo.ApplicationAccessTokenRequestVO;
import com.tiancheng.trade.authserver.vo.ApplicationAccessTokenResponseVO;
import com.tiancheng.trade.authserver.vo.UserLogInResultVO;
import com.tiancheng.trade.authserver.vo.UserLoginInVO;

/**
 * @Author: likailun
 * @Description: 登录服务
 * @Date: create in 2024/10/21 15:54
 */
public interface AuthLoginService{

    /**
     * 用户登录
     *
     * @param param            登录参数
     * @param checkCertificate 是否校验证书
     * @return
     */
    UserLogInResultVO userSignIn(UserLoginInVO param, boolean checkCertificate);

    /**
     * 获取应用授权
     * @param requestVO
     * @return
     */
    ApplicationAccessTokenResponseVO getAccessToken(ApplicationAccessTokenRequestVO requestVO);
}
